package com.doujiang.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 收藏/想看对象 favorite
 * 
 * @author 王伟舰
 * @date 2025-07-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Favorite implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户ID */

    private Long userId;

    /** 电影ID */

    private Long movieId;

    /** 1=想看 2=已看 3=收藏 */

    private Integer type;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")

    private Date createdAt;

    /** $column.columnComment */
    @TableLogic
    private Long deleted;


}
